//
//  SYTestViewController.swift
//  仿微博
//
//  Created by a。 on 16/9/20.
//  Copyright © 2016年 a。. All rights reserved.
//

import UIKit

class SYTestViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        view.backgroundColor = UIColor.brown
        navigationItem.rightBarButtonItem = UIBarButtonItem(title:"push" ,target: self, action: #selector(pushAction))
        
    }
    
    func setNavUI() {
        //
        //        let btn = UIButton()
        //
        //
        //        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "登录")
        //        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "注册")
        //
        
        
    }
    @objc func pushAction() -> Void {
        
        let testVC = SYTestViewController()
        
        navigationController?.pushViewController(testVC, animated: true)
        
        
        
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
